package com.ruoyi.system.service.impl;

import com.ruoyi.system.dao.JyjcWdDao;
import com.ruoyi.system.domain.dto.JyjcWdDto;
import com.ruoyi.system.domain.po.TbJcJcwdcjExample;
import com.ruoyi.system.domain.vo.JyjcWdVo;
import com.ruoyi.system.mapper.TbJcJcwdcjMapper;
import com.ruoyi.system.service.JyjcWdService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class JyjcWdServiceImpl implements JyjcWdService {

    @Resource
    private JyjcWdDao jyjcWdDao;
    @Resource
    private TbJcJcwdcjMapper jcJcwdcjMapper;

    @Override
    public List<JyjcWdVo.JcwdcjResult> query(JyjcWdDto.Query dto) {
        return jyjcWdDao.query(dto);
    }

    @Override
    public void delete(List<String> jzlshList) {
        TbJcJcwdcjExample tbJcJcwdcjExample = new TbJcJcwdcjExample();
        tbJcJcwdcjExample.createCriteria().andJzlshIn(jzlshList);
        jcJcwdcjMapper.deleteByExample(tbJcJcwdcjExample);
    }
}
